package com.project.server.domain.operate;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.project.common.annotation.Excel;
import com.project.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 运营管理招商引资对象 t_operate_investment
 *
 * @author project
 * @date 2021-07-01
 */
public class TOperateInvestment extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 招商ID
     */
    private Long investmentId;

    /**
     * 招商图片
     */
    private String investmentImg;

    /**
     * 招商简介
     */
    @Excel(name = "招商简介")
    private String investmentProfile;

    /**
     * 招商内容
     */
    @Excel(name = "招商内容")
    private String investmentDetails;

    /**
     * 招商标题
     */
    @Excel(name = "招商标题")
    private String investmentTitle;

    /**
     * 发布人
     */
    @Excel(name = "发布人")
    private String investmentAuthor;

    /**
     * 是否显示0显示 1不显示
     */
    @Excel(name = "是否显示", readConverterExp = "0=显示,1=不显示")
    private String isDisplay;

    /**
     * 是否置顶（1置顶 2不置顶）
     */
    @Excel(name = "是否置顶", readConverterExp = "1=置顶,2=不置顶")
    private String isTop;

    /**
     * 招商类型
     */
    @Excel(name = "招商类型", readConverterExp = "0=招商外包,1=企业招商,2=政府招商")
    private String investmentType;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date investmentDatetime;

    /**
     * 点击次数
     */
    @Excel(name = "点击次数")
    private Long contentHit;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    public void setInvestmentId(Long investmentId) {
        this.investmentId = investmentId;
    }

    public Long getInvestmentId() {
        return investmentId;
    }

    public String getInvestmentImg() {
        return investmentImg;
    }

    public void setInvestmentImg(String investmentImg) {
        this.investmentImg = investmentImg;
    }

    public String getInvestmentProfile() {
        return investmentProfile;
    }

    public void setInvestmentProfile(String investmentProfile) {
        this.investmentProfile = investmentProfile;
    }

    public void setInvestmentDetails(String investmentDetails) {
        this.investmentDetails = investmentDetails;
    }

    public String getInvestmentDetails() {
        return investmentDetails;
    }

    public void setInvestmentTitle(String investmentTitle) {
        this.investmentTitle = investmentTitle;
    }

    public String getInvestmentTitle() {
        return investmentTitle;
    }

    public void setInvestmentAuthor(String investmentAuthor) {
        this.investmentAuthor = investmentAuthor;
    }

    public String getInvestmentAuthor() {
        return investmentAuthor;
    }

    public void setIsDisplay(String isDisplay) {
        this.isDisplay = isDisplay;
    }

    public String getIsDisplay() {
        return isDisplay;
    }

    public void setIsTop(String isTop) {
        this.isTop = isTop;
    }

    public String getIsTop() {
        return isTop;
    }

    public void setInvestmentType(String investmentType) {
        this.investmentType = investmentType;
    }

    public String getInvestmentType() {
        return investmentType;
    }

    public void setInvestmentDatetime(Date investmentDatetime) {
        this.investmentDatetime = investmentDatetime;
    }

    public Date getInvestmentDatetime() {
        return investmentDatetime;
    }

    public void setContentHit(Long contentHit) {
        this.contentHit = contentHit;
    }

    public Long getContentHit() {
        return contentHit;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("investmentId", getInvestmentId())
                .append("investmentImg", getInvestmentImg())
                .append("investmentProfile", getInvestmentProfile())
                .append("investmentDetails", getInvestmentDetails())
                .append("investmentTitle", getInvestmentTitle())
                .append("investmentAuthor", getInvestmentAuthor())
                .append("isDisplay", getIsDisplay())
                .append("isTop", getIsTop())
                .append("investmentType", getInvestmentType())
                .append("investmentDatetime", getInvestmentDatetime())
                .append("contentHit", getContentHit())
                .append("createBy", getCreateBy())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
